package com.jiangxjsy.crm.service.impl;

import com.jiangxjsy.crm.mapper.CrmCustomerPoolRuleMapper;
import com.jiangxjsy.crm.service.CrmCustomerPoolRuleService;
import com.jiangxjsy.model.crm.entity.CrmCustomerPoolRule;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * wukong-crm-master
 * 蒋胜宇
 * 2025/6/17 16:05
 */

@Service
public class CrmCustomerPoolRuleServiceImpl implements CrmCustomerPoolRuleService {
    @Resource
    private CrmCustomerPoolRuleMapper crmCustomerPoolRuleMapper;

    /**
     * 根据客户池id查询客户池规则
     *
     * @param poolId 客户池id
     * @return 规则列表
     */
    @Override
    public List<CrmCustomerPoolRule> queryRulesByPoolId(Long poolId) {
        return crmCustomerPoolRuleMapper.selectByPoolId(poolId);
    }
}
